package com.atguigu.tingshu.album.service;

import com.atguigu.tingshu.model.album.TrackInfo;
import com.atguigu.tingshu.query.album.TrackInfoQuery;
import com.atguigu.tingshu.vo.album.*;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface TrackInfoService extends IService<TrackInfo> {

    void saveTrackInfo(TrackInfoVo trackInfoVo);


    Page<TrackListVo> findUserTrackPage(Page<TrackListVo> trackInfoPage, TrackInfoQuery voQuery);

    void updateTrackInfo(TrackInfo trackInfo);

    void removeTrackInfo(Long id);

    void saveTrackStat(Long trackId, String statType, int statNum);

    IPage<AlbumTrackListVo> findAlbumTrackPage(IPage<AlbumTrackListVo> pageInfo, Long albumId);

    TrackStatVo getTrackStatVo(Long trackId);

    void updateTrackStat(TrackStatMqVo vo);

    List<TrackInfo> findPaidTrackInfoList(Long userId, Long trackId, Integer trackCount);
}
